<template>
  <div class="home">
    <el-container>
      <el-header class="layout-header">
        <h1>酷鲨鱼商城管理平台</h1>
      </el-header>
      <el-container class="layout-body">
        <el-aside class="layout-aside">
<!--         default 默认激活路由 -->
          <el-menu
              router
              :default-active="$router.currentRoute.path"
              class="el-menu-vertical-demo"
              background-color="#222c32"
              text-color="#fff"
              active-text-color="#ffd04b">
            <el-menu-item>
              <i class="el-icon-s-home"></i>首页
            </el-menu-item>
            <el-submenu index="2">
              <template slot="title">
                <i class="el-icon-s-tools"></i>
                <span>临时页面</span>
              </template>
              <el-menu-item index="/album/add-new"><i class="el-icon-s-tools"></i>添加相册
              </el-menu-item>
              <el-menu-item index="/album/list"><i class="el-icon-s-promotion"></i>相册列表
              </el-menu-item>
              <el-menu-item index="/adminList"><i class="el-icon-s-cooperation"></i>管理员列表
              </el-menu-item>
            </el-submenu>

            <el-submenu index="1">
              <template slot="title">
                <i class="el-icon-location"></i>
                <span>导航一</span>
              </template>
              <el-menu-item-group>
                <template slot="title">分组一</template>
                <el-menu-item index="1-1">选项1</el-menu-item>
                <el-menu-item index="1-2">选项2</el-menu-item>
              </el-menu-item-group>
              <el-menu-item-group title="分组2">
                <el-menu-item index="1-3">选项3</el-menu-item>
              </el-menu-item-group>
              <el-submenu index="1-4">
                <template slot="title">选项4</template>
                <el-menu-item index="1-4-1">选项1</el-menu-item>
              </el-submenu>
            </el-submenu>

            <el-menu-item index="3" disabled>
              <i class="el-icon-document"></i>
              <span slot="title">导航三</span>
            </el-menu-item>
            <el-menu-item index="4">
              <i class="el-icon-setting"></i>
              <span slot="title">导航四</span>
            </el-menu-item>
          </el-menu>
        </el-aside>
        <el-main>
          <router-view/>
        </el-main>
      </el-container>
    </el-container>
  </div>
</template>
<style>
.layout-header {
  background-color: #1684d0;
}

.layout-aside {
  background-color: #222c32;
}

.layout-aside i {
  color: white !important;
}

.layout-header h1 {
  color: #fff;
  line-height: 60px
}
.el-menu-item.is-active {
  background-color:darkcyan!important;
}

.layout-body {
  position: absolute;
  top: 60px;
  bottom: 0;
  right: 0;
  left: 0;
}

* {
  margin: 0
}
</style>
<script>

</script>
